import cardData from "./card.json"
import cardNameData from "./card_logo_name.json"
// 查找卡号对应名称信息
export function findCardInfo(code) {
let str= code.substr(0,6)
let obj
   cardData.map(o=>{
	   o.type.map(o2=>{
		   if(o2.arr.includes(str)){
			   obj={
				   name:o.bank_name,
				   img:o.bank_code,
				   type:o2.type_No
			   }
		   }
		   
	   })
   })
   return obj
}